package com.ems.controller;

import com.ems.service.ITProductService;
import com.ems.service.impl.TProductServiceImpl;
import com.ems.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author CSC
 * @since 2022-06-28
 */
@RestController
@RequestMapping("/t-product")
public class TProductController {
@Autowired
    ITProductService itProductService;
@GetMapping("productnum")
    public ResultUtil getProductNum(){
    return ResultUtil.success(itProductService.getProductNum());
}
}
